//
//  UIImageView+Extension.h
//  Practice
//
//  Created by yons on 14.8.20.
//  Copyright © 2020 yons. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIImageView (Extension)

/// 类方法
+ (UIImageView *)imageView;

/// 图片
/// @param imageName 图片名称
+ (UIImageView *)imageViewWithImageName:(NSString *)imageName;

/// 背景色
/// @param backgroundColor 背景色
+ (UIImageView *)imageViewWithBackgroundColor:(UIColor *)backgroundColor;

/// 剪切半径
/// @param radius 剪切半径
+ (UIImageView *)imageViewWithCornerRadius:(CGFloat)radius;

/// 剪切半径+边框宽度+边框颜色
/// @param radius 剪切半径
/// @param borderWidth 边框宽度
/// @param borderColor 边框颜色
+ (UIImageView *)imageViewWithCornerRadius:(CGFloat)radius borderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor;

/// 添加点击方法
/// @param target target
/// @param action 方法
- (void)addTarget:(nullable id)target action:(nullable SEL)action;

@end

NS_ASSUME_NONNULL_END
